package com.ruoyi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 消费记录对象 car_consume_record
 * 
 * @author ruoyi
 * @date 2025-01-27
 */
@Data
public class CarConsumptionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID（主键） */
    private Integer recordId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 金额（正数=消费，负数=退款） */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 记录类型（0=订单支付，1=退款） */
    @Excel(name = "记录类型")
    private Integer recordType;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    public void setRecordId(Integer recordId) 
    {
        this.recordId = recordId;
    }

    public Integer getRecordId() 
    {
        return recordId;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setRecordType(Integer recordType) 
    {
        this.recordType = recordType;
    }

    public Integer getRecordType() 
    {
        return recordType;
    }

    public void setRemark(String remark) 
    {
        this.remark = remark;
    }

    public String getRemark() 
    {
        return remark;
    }

    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("orderNumber", getOrderNumber())
            .append("amount", getAmount())
            .append("recordType", getRecordType())
            .append("remark", getRemark())
            .append("recordTime", getRecordTime())
            .toString();
    }
}
